//SPU属性数据类型
export interface Spu {
  id?: number | string; //SPUid
  description: string; //商品描述
  spuName: string; //属性名
  category3Id: number | string; //三级分类ID
  tmId: number | string; //品牌ID
  spuSaleAttrList?: spuSaleAttrValueListType; //销售属性
  spuImageList?: ImageObj | []; //SPU图片
}
//SPU数据数组
export type Records = Spu[];
//SPU接口返回数据列表数据类型
export interface SpuListObjectType {
  records: Records;
  total: number; //总数据数
  size: number; //每页数据数
  current: number; //当前页数
  searchCount: boolean;
  pages: number; //几页
}
//SPU品牌数据类型
export interface SPUBrand {
  id?: number | string;
  logoUrl: "string";
  tmName: "string";
}
//SPU品牌数据接口ts类型
export type SPUBrandList = SPUBrand[];
//照片墙数据类型
export interface ImageObj {
  id?: number;
  imgName?: string;
  imgUrl?: string;
  spuId?: number;
  url?: string;
  name?: string;
  isDefault?: boolean;
}
//照片墙接口ts类型
export type SPUImageList = ImageObj[];
//销售属性值数据类型
export interface SaleValueType {
  id?: number;
  spuId?: number | string;
  baseSaleAttrId?: number;
  saleAttrValueName?: string;
  saleAttrName?: string;
  isChecked?: null;
}
//商品属性值列表ts类型
export type spuSaleAttrValueListType = SaleValueType[];
//商品属性和属性值返回数据类型
export interface SPUAttributeList {
  id?: number;
  spuId?: number;
  baseSaleAttrId: number;
  saleAttrName: string;
  spuSaleAttrValueList?: spuSaleAttrValueListType;
  isShow?: boolean; //是否展示输入框
}
//商品属性结构返回数据类型
export type SPUAttributeListAPI = SPUAttributeList[];
//全部属性的数据类型
export interface AllSPUAttribute {
  id?: number;
  name: string;
}
//获取全部属性数据类型的接口返回数据ts类型
export type AllSPUAttributeList = AllSPUAttribute[];
